// LoginLogServiceImpl.java
package com.aaa.vegetablemarketexpress.service.impl;

import com.aaa.vegetablemarketexpress.dao.LoginLogDao;
import com.aaa.vegetablemarketexpress.entity.LoginLog;
import com.aaa.vegetablemarketexpress.service.LoginLogService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class LoginLogServiceImpl implements LoginLogService {

    @Resource
    private LoginLogDao loginLogDao;

    @Override
    public void insertLoginLog(LoginLog loginLog) {
        loginLogDao.insertLoginLog(loginLog);
    }

    @Override
    public List<LoginLog> selectLoginLogList(LoginLog loginLog) {
        return loginLogDao.selectLoginLogList(loginLog);
    }

    @Override
    public int deleteLoginLogByIds(Long[] loginIds) {
        return loginLogDao.deleteLoginLogByIds(loginIds);
    }

    @Override
    public void cleanLoginLog() {
        loginLogDao.cleanLoginLog();
    }
}
